<?php

class module_u_acl extends a_base_module
implements i_hook_pre_controller,
           i_hook_post_controller,
           i_hook_post_controller_constructor,
           i_hook_post_system,
           i_hook_base_controller_constructor{


    const DRIVER_ALLOWED                = 'driver_is_allowed';
    const DRIVER_NOT_ALLOWED            = 'driver_not_allowed';
    const ACL_PERMISSION_DRIVERS_FOLDER = 'drivers';
    
    public function __construct($basic_info){
        parent::__construct($basic_info);        
    }

    public function exe_pre_controller(){
        $sys_user = is_sys_user_logged_in();
        if($sys_user!==NULL){
            $service = new service_l_acl();
            $items = $service->get_sys_menu_items($sys_user);
            $this->smarty()->assign("acl_admin_items",   $items);
            unset ($service);
        }
    }
    
    public function exe_post_controller(){

    }

    public function exe_post_controller_constructor(){
       // trace();
    }

    public function exe_post_system(){
       // trace();
    }
    
    public function exe_base_controller_constructor(){        

    }
}